/* eslint-disable */
// 接口信息, 生成请求方法
// 引入 get方法, post方法
import axios, { get, post,put,del } from './index'

// 用户登录
export const login = (params, headers) => post("/user/login/", params, headers)
//图书获取
export const getBooks = (params, headers) => get("/user/bookinfo/", params, headers)
//添加图书
export const addBook = (params, headers) => post("/user/bookinfo/", params, headers)
//修改图书
export const editBook = (params, headers) => put("/user/bookinfo/", params, headers)

export const delBook = (params, headers) => del("/user/bookinfo/", params, headers)